package Server;

public class DbContact {
	private long number;
	private String name;
	private String surname;
	private int age;
	private String username;
	private char[] password;

	public DbContact(long number, String name, String surname, int age,
			String username, char[] password) {
		super();
		this.number = number;
		this.name = name;
		this.surname = surname;
		this.age = age;
		this.username = username;
		this.password = password;
	}

	public long getNumber() {
		return number;
	}

	public void setNumber(long number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public char[] getPassword() {
		return password;
	}

	public void setPassword(char[]password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "DbContact [number=" + number + ", name=" + name + ", surname="
				+ surname + ", age=" + age + ", username=" + username
				+ ", password=" + new String(password) + "]";
	}
}
